BIN=/home/swlee4skmt/svn_co/smt/copycat/bin/
COPY=${BIN}copycat-rf

################################
EVAL=`cat ../info/num-eval.var`
DEV=`cat ../info/num-dev.var`
TRAIN=`cat ../info/num-train.var`

let TMP1=($EVAL+$DEV)
let TMP2=($EVAL+$DEV+$TRAIN)

rm -rf copycat
${COPY} copycat-train corpus/src-all.parse copycat

cd copycat
mv src.tok src-all.tok
head -${EVAL} src-all.tok > src-eval.tok
head -${TMP1} src-all.tok | tail -${DEV}  > src-dev.tok
head -${TMP2} src-all.tok | tail -${TRAIN}  > src-train.tok

mv src.parse src-all.parse
head -${EVAL} src-all.parse > src-eval.parse
head -${TMP1} src-all.parse | tail -${DEV}  > src-dev.parse
head -${TMP2} src-all.parse | tail -${TRAIN}  > src-train.parse

ln -s ../../i0/corpus/tgt*.tok .


